package com.share.order.service;

import com.share.order.domain.EndOrderVo;
import com.share.order.domain.OrderInfo;
import com.share.order.domain.SubmitOrderVo;

import java.util.List;

public interface IOrderInfoService {
    //获取未完成订单
    OrderInfo getNoFinishOrder(Long userId);

    Long saveOrder(SubmitOrderVo submitOrderVo);

    void endOrder(EndOrderVo endOrderVo);

    //获取用户订单列表
    List<OrderInfo> selectUserOrderInfoList(Long userId);

    //获取订单详细信息
    OrderInfo selectOrderInfoById(Long id);

    //根据订单编号查询订单信息
    OrderInfo getByOrderNo(String orderNo);

    void processPaySucess(String orderNo);
}
